package com.joecy;

import com.joecy.myribbon.ExcludeAnno;
import com.joecy.myribbon.MyRibbonConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @author: 陈玉林
 * @modifiedBy:
 * @date: Create In 9:07 2018/10/19
 * @description:
 */
@SpringBootApplication
@EnableEurekaClient
// 使用此规则不可放在 可扫描的路径下, 如果非要放置, 需要加自定义注解
@RibbonClient(name = "spring-cloud-provider", configuration = MyRibbonConfig.class)
@ComponentScan(excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = {ExcludeAnno.class})})
public class SpringCloudConsumerRibbonApplication80 {
    public static void main(String[] args) {
        SpringApplication.run(SpringCloudConsumerRibbonApplication80.class, args);
    }
}
